<template>
  <div class="smart-remind-drawer">
    <el-drawer
      title="智能提醒"
      :visible.sync="drawer"
      :wrapperClosable="false"
      direction="rtl"
      :modal-append-to-body="false"
      :show-close="false"
      size="35%"
    >
      <div class="smart-remind-content">
        <p class="title-tips">租赁协议智能提醒-提醒</p>
        <el-input v-model="value" placeholder="搜索编号" class="search" />
        <el-table :data="tableData" style="width: 95%; margin: 80px auto 0">
          <el-table-column label="序号" width="55">
            <template slot-scope="scope">{{ scope.$index + 1 }}</template>
          </el-table-column>
          <el-table-column label="租户姓名" prop="leaseName"> </el-table-column>
          <el-table-column label="联系方式" prop="lesseeContact">
          </el-table-column>
          <el-table-column label="到期日期" prop="endDate"> </el-table-column>
          <el-table-column label="资产类型" prop="propertyTypeName">
          </el-table-column>
          <el-table-column label="管理部门" prop="manageDeptName">
          </el-table-column>
          <el-table-column label="权属" prop="ownershipName"> </el-table-column>
          <el-table-column label="资产地块编号" prop="propertyCode">
          </el-table-column>
          <el-table-column label="资产地块" prop="propertyName">
          </el-table-column>
          <el-table-column label="所在社区" prop="propertyCommunityName">
          </el-table-column>
        </el-table>
        <div class="smart-btn" @click="closeClick">关闭</div>
      </div>
    </el-drawer>
  </div>
</template>

<script>
export default {
  props: {
    drawer: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      value: "",
      tableData: [
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
        {
          xuhao: "1",
          type: "商铺",
          id: "J0101-006",
          time: "2024-03-31",
          name: "王城",
          phone: "15161436322",
        },
      ],
      search: "",
    };
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
    closeClick() {
      this.$emit("update:drawer", false);
    },
    detailClick() {
      this.$router.push("/shops/shopsDetail");
    },
  },
};
</script>

<style lang="scss" scoped>
@import "~@/styles/mixin.scss";

.smart-remind-drawer {
  position: relative;
  .title-tips {
    position: absolute;
    top: 10px;
    left: 100px;
    font-size: 12px;
    color: #88909b;
  }
  .search {
    width: 50%;
    position: absolute;
    right: 20px;
    top: 80px;
  }
  .smart-remind-content {
    .smart-btn {
      @include searchBtn;
      margin-top: 50px;
      margin-left: 25px;
    }
  }
}
</style>

<style lang="scss">
.smart-remind-drawer {
  .el-drawer__header {
    background-color: #fafafa;
    padding: 19px 23px;
    color: #000;
    margin-bottom: 5px;
  }
}
</style>